package com.awa.usercenter.controller;


import com.awa.usercenter.common.BaseResponse;
import com.awa.usercenter.common.utils.ResultUtils;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@Tag(name = "测试相关接口")
public class TestController {

    @RequestMapping("/test1")
    @ResponseBody
    public BaseResponse test1(){
        return ResultUtils.success("13123");
    }
    @RequestMapping("/test2")
    @ResponseBody
    public String test2(){
        return "test method";
    }
}
